import BaseCURDV2Api from '@/framework/infra/base/BaseCURDV2Api'

class DicApi extends BaseCURDV2Api {
  constructor() {
    super('sys/dic')
  }

  allOptions(dicType) {
    return this.get('/all-options', { dicType }).then(data => {
      return data.reverse()
    })
  }
}

export const dicApi = new DicApi()
